#ifndef __JSONPATH_INDEX_H__
#define __JSONPATH_INDEX_H__

#include <vector>

class RangeIndex
{
public:
    RangeIndex() : m_iStart(0), m_iEnd(0), m_iStep(1), m_bEnd(false) {} // 初始化默认值为0, -1(不限制), 1
    int m_iStart;
    int m_iEnd;
    int m_iStep;
    bool m_bEnd;
};

class JsonPathIndex
{
public:
    std::vector<int> m_vectDiscreteIndex;
    std::vector<RangeIndex> m_vectRangeIndex;
};

#endif // __JSONPATH_INDEX_H__
